<?php

namespace App\Models;



class CzSpec extends ApiBaseModel
{

    protected $table = 'cz_spec';
    protected $fillable = [
        'product_id',
        'face_value',
        'market_price',
        'sell_price',
        'spec_code',
        'status',
        'is_cache',
        'create_by',
        'update_by',
        'is_auto',
        'is_limit',
        'limit_time'
    ];
    protected $casts = [
        'status' => 'string',
        'is_cache' => 'string',
        'is_auto' => 'string',
    ];

    public function product()
    {
        return $this->belongsTo(CzProduct::class, 'product_id', 'id');
    }
}
